<?php
class MemberAction extends AdminAction {

	public function _before_update()
	{
		$password = $_POST['password'];
		if ($password) {
			$_POST['password'] = md5($password);
		}
	}

	public function view($id = 0)
	{
		$Member = M('Member');
		$minfo = $Member->find($id);

		$Mpaccount = M('Mpaccount');
		$map['mid'] = $id;
		$mpinfo = $Mpaccount->where($map)->find();

		$this->assign('minfo',$minfo );
		$this->assign('mpinfo',$mpinfo );
		$this->display();
	}
}